@echo off

if "%1"=="Debug" (goto PDebug)
if "%1"=="Release" (goto PRelease)
:PDebug
if not exist ..\Debug\Res ( md ..\Debug\Res ) 

if not exist ..\Debug\Res\History.xml ( xcopy Config\History.xml ..\Debug\Res\ )

goto end

:PRelease

if not exist ..\Release\Res ( md ..\Release\Res )

if not exist ..\Release\Res\History.xml ( xcopy Config\History.xml ..\Release\Res\ )

goto end


:end
echo this is the end